/*
 * EnemyDestroyedEvent.h
 *
 *  Created on: Oct 14, 2008
 *      Author: Ryan
 */

#ifndef ENEMYDESTROYEDEVENT_H_
#define ENEMYDESTROYEDEVENT_H_

#include "GameEvent.h"

namespace OOInterface
{

class EnemyDestroyedEvent: public OOInterface::GameEvent
{
public:
	EnemyDestroyedEvent( ConstUnitPtr destroyed, ConstUnitPtr attacker) : _destroyed( destroyed ), _attacker( attacker ) { }
	virtual ~EnemyDestroyedEvent() {}

	ConstUnitPtr getDestroyed() const { return _destroyed; }
	ConstUnitPtr getAttacker() const { return _attacker; }

	virtual std::string toString() const{ return std::string("Event: Enemy Destroyed."); }

private:
	ConstUnitPtr _destroyed;
	ConstUnitPtr _attacker;
};

}

#endif /* ENEMYDESTROYEDEVENT_H_ */
